﻿using Nantianmen.Domain.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nantianmen.Domain.Dtos
{
    public class RouteDto : AuditTimeDto
    {
        [Key]
        [Required(AllowEmptyStrings = false)]
        public string Id { get; set; } = default!;
        public int? Order { get; set; }
        public string? ClusterId { get; set; }
        public RouteMatch? Match { get; set; }
        public long? MaxRequestBodySize { get; set; }
        public string? CorsPolicy { get; set; }
        public string? AuthorizationPolicy { get; set; }
        public Dictionary<string, string>? Metadata { get; set; }
        public List<Dictionary<string, string>>? Transforms { get; set; }
    }
}
